package com.itkaien.demo01;

import lombok.extern.slf4j.Slf4j;
import org.apache.commons.logging.Log;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/")
public class HelloController {

    @RequestMapping("/hello")
    public String hello(){

        Logger logger = LoggerFactory.getLogger(HelloController.class);
        logger.error("hello world");
        logger.info("hello world");

        logger.debug("hello world debug {}");



        return "hello world";
    }

    @RequestMapping("/hello1")
    public String hello1(){

        Logger logger = LoggerFactory.getLogger(HelloController.class);
        logger.error("hello world");
        logger.info("hello world");

        logger.debug("hello world debug {}");



        return "hello world";
    }
}
